home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-08-19 | 2.6 KB | 83 lines | [TEXT/MPS ] |
- ThinkHelper 1.0b1
- © 1993 Steve Zellers
- 08/18/93
-
- • ThinkHelper
-
- ThinkHelper adds additional AppleEvent support to the Think Project Manager
- application. It does this by patching the TPM application. The patch contains
- the AppleEvent dispatches, to the Think "PUF" interface - an external interface
- provided to TPM extensions writers. In addition, several traps are patched to
- give even more support.
-
- ThinkHelper is distributed Freely.
-
- • ThinkHelper Verbs
-
- closeTargetWindow: closes the frontmost document window
-
- callMenuItem: forces TPM to select the named menu item
-
- setTargetPos: moves the target window to (x,y,x+w,y+h) global coordinates
-
- getTargetPath: returns an FSSpec of the target (frontmost) window
-
- markSelection: names the selection with a marker
-
- deleteMarker: removes a marker from the file
-
- getMarker: return the start and endpos of a named marker
-
- getAllMarkers: returns a list of all markers
-
- getSelection: returns the start and end pos of the selection
-
- setSelection: sets the text selection in the target window
-
- copySelection: returns the text of the current selection
-
- getWindowText: returns the entire text of the target window
-
- pasteText: inserts the text over the current selection
-
- • Source
-
- Is provided - you can extend the existing 'THLP' resource (which contains the
- code) or add one of your own. The patcher program causes all 'THLP's in the
- TPM to be loaded.
-
- • Installation
-
- 1) BACK UP YOUR COPY OF TPM
-
- 2) Really, do #1 first
-
- 3) Launch the "ThinkHelper Patcher 1.0b1" Application, navigate to the
- copy of TPM that you want to modify, and hit OK. Hopefully, you'll
- get a cheeky message to the effect that the installation was successful.
-
- 4) Copy the "ClassQuery•SMZ" file to your TPM folder - its used in one of
- the example scripts.
-
- 5) Install apps.ThinkHelper and apps.SourceServer in your Frontier.root
- by dbl clicking on them. The ThinkHelper verb table is of course required,
- and the SourceServer table just plain useful. (And some of the examples use
- SourceServer)
-
- 6) Open a scratch project, and try out some of the commands in
- ThinkHelper.examples. Remember that you have to have a document (TEXT)
- window frontmost in TPM for most of these commands to do anything useful.
- For starters, I'd insert some text, and try moving the window around.
-
- • Fun
-
- Have fun and let me know what you think. I'm not planning on adding
- much more functionality (it does everything _I_ need it to do ;-) but if
- you come up with something you'd like to share (encouraged) I'll roll it
- into the next release.
-
- --Steve Zellers
- P.O. Box 9606
- Berkeley, CA 94709
- CIS: 75460,1375
-